import request from '@/utils/request';
// ------------------- 药品档案 -------------------
// 药品档案列表
export const getDrugList = params => request({
    url: '/drugs/getDrugList',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 药品管理添加
export const drugAdd = params => request({
    url: '/drugs/addDrug',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 药品管理修改
export const updateDrug = params => request({
    url: '/drugs/updateDrug',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 药品管理详情
export const getDrug = params => request({
    url: '/drugs/getDrug',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 药品管理详情
export const exportDrug = params => request({
    url: '/drugs/export',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 药品销售价格
export const exportPriceStrategy = params => request({
    url: '/drug/priceStrategy/export',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 药品上下架
export const updateBatchDrug = params => request({
    url: '/drugs/updateBatchDrug',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});

// 药品下拉列表
export const allDrugsList = params => request({
    url: '/drugs/allList',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});

// ------------------- 药品类型-------------------
// 药品类型列表
export const selectList = params => request({
    url: '/dictsType/selectList',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 药品类型新增
export const dictsTypeAdd = params => request({
    url: '/dictsType/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 药品类型修改
export const dictsTypeUpdate = params => request({
    url: '/dictsType/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 药品类型删除
export const dictsTypeDelete = params => request({
    url: '/dictsType/delete',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 药品类型下拉
export const dictsTypeAllList = params => request({
    url: '/dictsType/selectAllList',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// ------------------- 药品分类-------------------
// 药品分类列表
export const drugcategoryList = params => request({
    url: '/drugcategory/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 药品分类新增
export const drugcategoryAdd = params => request({
    url: '/drugcategory/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 药品分类删除
export const drugcategoryDelete = params => request({
    url: '/drugcategory/delete',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 药品分类修改
export const drugcategoryUpdate = params => request({
    url: '/drugcategory/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 药品分类下拉
export const drugcategoryAllList = params => request({
    url: '/drugcategory/allList',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});

// ------------------- 药品单位-------------------
// 药品单位列表
export const unitList = params => request({
    url: '/drugSpecUnit/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 药品单位新增
export const unitAdd = params => request({
    url: '/drugSpecUnit/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 药品单位修改
export const unitUpdate = params => request({
    url: '/drugSpecUnit/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 药品单位删除
export const unitDelete = params => request({
    url: '/drugSpecUnit/delete',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
